package models

import (
	"github.com/astaxie/beego/orm"
	_ "github.com/go-sql-driver/mysql"
)

type Course struct {
	Id        int    `json:"id"`
	Title     string `json:"title"`
	TeacherId int    `json:"teacher_id"`
	StartTime string `json:"start_time"`
	EndTime   string `json:"end_time"`
	Wxid      string `json:"wxid"`
}

func init() {
	orm.RegisterModel(new(Course))
}
func (c *Course) TableName() string {
	return "course"
}
